x = sym('x');

taylor(exp(x), x)

taylor(sin(x), x)